<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

namespace app\services\activity\score;

use app\dao\activity\score\StoreScoreDao;
use app\dao\activity\score\StoreScoreTaskRecordDao;
use app\services\BaseServices;

/**
 */
class StoreScoreTaskRecordServices extends BaseServices
{
    /**
     * StoreScoreTaskRecordDao constructor.
     * @param StoreScoreTaskRecordDao $dao
     */
    public function __construct(StoreScoreTaskRecordDao $dao)
    {
        $this->dao = $dao;
    }

    /**
     * @param $uid
     * @return array|\crmeb\basic\BaseModel|mixed|\think\Model|null
     */
    public function getUserTaskRecord($uid){
        return $this->dao->getUserTaskRecordList($uid);
    }

    /**
     * @param $uid
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getUserTasksFinishNumber($uid){
        return $this->dao->getUserTasksFinishNumber($uid);
    }
}
